package com.example.musicdemo.adapter

import android.content.Context
import com.example.musicdemo.base.BaseListAdapter
import com.example.musicdemo.model.Music
import com.example.musicdemo.widget.SearchItemView

class SearchAdapter: BaseListAdapter<Music, SearchItemView>() {

    private lateinit var  mSearchItemView:SearchItemView
    override fun refreshItemView(itemView: SearchItemView, data: Music) {

        itemView.setData(data)
    }

    override fun getItemView(context: Context?): SearchItemView {
        mSearchItemView = SearchItemView(context)
        return mSearchItemView
    }





}